<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>

<body>
    <div>
        <h1>&nbsp;</h1>
        <script id="editor" type="text/plain" style="width:100%;height:500px;"></script>
    </div>
        <button onclick="submit();">确定</button>
        <button onclick="a();">确定</button>
    <script type="text/javascript" charset="utf-8" th:src="@{/js/ueditor/ueditor.config.js}"></script>
        <script type="text/javascript" charset="utf-8" th:src="@{/js/ueditor/ueditor.all.js}"> </script>
    <script type="text/javascript" charset="utf-8" th:src="@{/js/ueditor/lang/zh-cn/zh-cn.js}"></script>
    <script type="text/javascript" charset="utf-8" th:src="@{/js/ueditor/ueditor.js}"></script>
        <script>
            var ue = UE.getEditor('editor');
            function a() {
                var ue = UE.getEditor('editor');
            }
            function submit() {
                alert(UE.getEditor('editor').getContent());
            }
        </script>
</body>
</html>